/*
 * $(document).ready(function() {
 * 
 * $.ajax({ type : "post", url : "lzw/taskTrack_queryTaskDetail.action", data :
 * "taskid=" + $.cookie('tasktrackid'), dataType : "JSON", success : showPage,
 * error : function(textStatus) { alert("Ajax请求失败，请检查本地的网络连接！"); return false; }
 * });
 * 
 * });
 */
// file download start :hmk
$(document).ready(function() {

	$(".fjURL").click(function() {
			downloadFile(this);
		});
		
	$("#back").click(function(){
	    $('#taskTrackFrame', window.parent.document).attr("src","/ag/lzw/track_list.jsp");
	});
	
});

function downloadFile(v) {
	var path = $(v).prev().text();
	var filename = $(v).prev().prev().text();
	var moduelId = $(v).prev().prev().prev().text();
	window.location.href = "/ag/file/download.action?fileRealName="
			+ $.trim(filename) + "&fileDiskURL=" + $.trim(path) + "&moduleID="
			+ $.trim(moduelId);
	// url :
	// "file/download.action?fileRealName="+$.trim(filename)+"&fileDiskURL="+$.trim(path)+"&moduleID="+$.trim(moduelId),
}
// file download end :hmk

